<?php
header("content-type:text/html;charset=utf-8");
$db=@new mysqli("localhost","root","123123","xbs_bbs");
if($db->connect_errno){
    echo "错误信息为：".$db->connect_error;
    exit();
}
$db->query("set names utf8");



if($db->errno){
    echo "错误信息是：".$db->error;
    exit();
}
$sql="insert into stus(name,age) values(?,?)";
$res=$db->prepare($sql);
$res->bind_param('si',$name,$age);
$name="谢谢";
$age=33;
$res->execute();


